var phantom = require('phantom');

phantom.create().then(function(ph) {
    ph.createPage().then(function(page) {
        page.open("http://192.168.50.218:8090/memberhtml/static_greetingCard.html").then(function(status) {
            page.property('viewportSize', { width: 3534, height: 5315 });
            page.render('./baidu.jpg').then(function() {
                console.log('Page rendered');
                ph.exit();
            });
        });
    });
});